//
//  CartoonGirlData.m
//  IMYWebView
//
//  Created by Gollum on 16/09/24
//  Copyright (c) IMY. All rights reserved.
//

#import "CartoonGirlData.h"
#import "CartoonGirlDetailData.h"

@implementation CartoonGirlData

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [CartoonGirlDetailData class]};
}
- (void)setValue:(id)value forKey:(NSString *)key{

    NSMutableArray <CartoonGirlDetailData *>*girlData = [NSMutableArray array];
    NSArray *array = value;
    if ([key isEqualToString:@"data"]) {
        for (NSDictionary *dic in array) {
            CartoonGirlDetailData *data = [CartoonGirlDetailData modelWithDic:dic];
            [girlData addObject:data];
        }
        _data = girlData;
    }


}
@end
